import { User, Message, Chat } from '../types';

export let currentUser: User = {
  id: 'current-user',
  nickname: '用户',
  username: 'current_user',
  roleId: '',
  roleName: '',
  researchGroupId: '',
  researchGroupName: '',
  avatar: '/images/user-avatar.jpg'
};

export function updateCurrentUser(userData: Partial<User>) {
  currentUser = { ...currentUser, ...userData };
}

export const users: User[] = [
  {
    id: 'user-1',
    nickname: 'Jane',
    username: 'jane_doe',
    roleId: '',
    roleName: '',
    researchGroupId: '',
    researchGroupName: '',
    avatar: '/images/user-avatar.jpg'
  },
  {
    id: 'assistant',
    nickname: 'AI助手',
    username: 'ai_assistant',
    roleId: '',
    roleName: '',
    researchGroupId: '',
    researchGroupName: '',
    avatar: '/images/assistant-avatar.jpg'
  }
];

export const messages: Record<string, Message[]> = {
};

export const chats: Chat[] = [];